package com.csdj.t309springboot.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TopicExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TopicExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andCommentCountIsNull() {
            addCriterion("comment_count is null");
            return (Criteria) this;
        }

        public Criteria andCommentCountIsNotNull() {
            addCriterion("comment_count is not null");
            return (Criteria) this;
        }

        public Criteria andCommentCountEqualTo(Integer value) {
            addCriterion("comment_count =", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountNotEqualTo(Integer value) {
            addCriterion("comment_count <>", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountGreaterThan(Integer value) {
            addCriterion("comment_count >", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("comment_count >=", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountLessThan(Integer value) {
            addCriterion("comment_count <", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountLessThanOrEqualTo(Integer value) {
            addCriterion("comment_count <=", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountIn(List<Integer> values) {
            addCriterion("comment_count in", values, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountNotIn(List<Integer> values) {
            addCriterion("comment_count not in", values, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountBetween(Integer value1, Integer value2) {
            addCriterion("comment_count between", value1, value2, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountNotBetween(Integer value1, Integer value2) {
            addCriterion("comment_count not between", value1, value2, "commentCount");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("`status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("`status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Boolean value) {
            addCriterion("`status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Boolean value) {
            addCriterion("`status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Boolean value) {
            addCriterion("`status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("`status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Boolean value) {
            addCriterion("`status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("`status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Boolean> values) {
            addCriterion("`status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Boolean> values) {
            addCriterion("`status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("`status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("`status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andTopicTimeIsNull() {
            addCriterion("topic_time is null");
            return (Criteria) this;
        }

        public Criteria andTopicTimeIsNotNull() {
            addCriterion("topic_time is not null");
            return (Criteria) this;
        }

        public Criteria andTopicTimeEqualTo(Date value) {
            addCriterion("topic_time =", value, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicTimeNotEqualTo(Date value) {
            addCriterion("topic_time <>", value, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicTimeGreaterThan(Date value) {
            addCriterion("topic_time >", value, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("topic_time >=", value, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicTimeLessThan(Date value) {
            addCriterion("topic_time <", value, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicTimeLessThanOrEqualTo(Date value) {
            addCriterion("topic_time <=", value, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicTimeIn(List<Date> values) {
            addCriterion("topic_time in", values, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicTimeNotIn(List<Date> values) {
            addCriterion("topic_time not in", values, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicTimeBetween(Date value1, Date value2) {
            addCriterion("topic_time between", value1, value2, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicTimeNotBetween(Date value1, Date value2) {
            addCriterion("topic_time not between", value1, value2, "topicTime");
            return (Criteria) this;
        }

        public Criteria andTopicUserIsNull() {
            addCriterion("topic_user is null");
            return (Criteria) this;
        }

        public Criteria andTopicUserIsNotNull() {
            addCriterion("topic_user is not null");
            return (Criteria) this;
        }

        public Criteria andTopicUserEqualTo(String value) {
            addCriterion("topic_user =", value, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserNotEqualTo(String value) {
            addCriterion("topic_user <>", value, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserGreaterThan(String value) {
            addCriterion("topic_user >", value, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserGreaterThanOrEqualTo(String value) {
            addCriterion("topic_user >=", value, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserLessThan(String value) {
            addCriterion("topic_user <", value, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserLessThanOrEqualTo(String value) {
            addCriterion("topic_user <=", value, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserLike(String value) {
            addCriterion("topic_user like", value, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserNotLike(String value) {
            addCriterion("topic_user not like", value, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserIn(List<String> values) {
            addCriterion("topic_user in", values, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserNotIn(List<String> values) {
            addCriterion("topic_user not in", values, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserBetween(String value1, String value2) {
            addCriterion("topic_user between", value1, value2, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicUserNotBetween(String value1, String value2) {
            addCriterion("topic_user not between", value1, value2, "topicUser");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdIsNull() {
            addCriterion("topic_category_id is null");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdIsNotNull() {
            addCriterion("topic_category_id is not null");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdEqualTo(Integer value) {
            addCriterion("topic_category_id =", value, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdNotEqualTo(Integer value) {
            addCriterion("topic_category_id <>", value, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdGreaterThan(Integer value) {
            addCriterion("topic_category_id >", value, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("topic_category_id >=", value, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdLessThan(Integer value) {
            addCriterion("topic_category_id <", value, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdLessThanOrEqualTo(Integer value) {
            addCriterion("topic_category_id <=", value, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdIn(List<Integer> values) {
            addCriterion("topic_category_id in", values, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdNotIn(List<Integer> values) {
            addCriterion("topic_category_id not in", values, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdBetween(Integer value1, Integer value2) {
            addCriterion("topic_category_id between", value1, value2, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicCategoryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("topic_category_id not between", value1, value2, "topicCategoryId");
            return (Criteria) this;
        }

        public Criteria andTopicTagIsNull() {
            addCriterion("topic_tag is null");
            return (Criteria) this;
        }

        public Criteria andTopicTagIsNotNull() {
            addCriterion("topic_tag is not null");
            return (Criteria) this;
        }

        public Criteria andTopicTagEqualTo(String value) {
            addCriterion("topic_tag =", value, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagNotEqualTo(String value) {
            addCriterion("topic_tag <>", value, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagGreaterThan(String value) {
            addCriterion("topic_tag >", value, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagGreaterThanOrEqualTo(String value) {
            addCriterion("topic_tag >=", value, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagLessThan(String value) {
            addCriterion("topic_tag <", value, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagLessThanOrEqualTo(String value) {
            addCriterion("topic_tag <=", value, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagLike(String value) {
            addCriterion("topic_tag like", value, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagNotLike(String value) {
            addCriterion("topic_tag not like", value, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagIn(List<String> values) {
            addCriterion("topic_tag in", values, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagNotIn(List<String> values) {
            addCriterion("topic_tag not in", values, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagBetween(String value1, String value2) {
            addCriterion("topic_tag between", value1, value2, "topicTag");
            return (Criteria) this;
        }

        public Criteria andTopicTagNotBetween(String value1, String value2) {
            addCriterion("topic_tag not between", value1, value2, "topicTag");
            return (Criteria) this;
        }

        public Criteria andNiceTopicIsNull() {
            addCriterion("nice_topic is null");
            return (Criteria) this;
        }

        public Criteria andNiceTopicIsNotNull() {
            addCriterion("nice_topic is not null");
            return (Criteria) this;
        }

        public Criteria andNiceTopicEqualTo(Integer value) {
            addCriterion("nice_topic =", value, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andNiceTopicNotEqualTo(Integer value) {
            addCriterion("nice_topic <>", value, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andNiceTopicGreaterThan(Integer value) {
            addCriterion("nice_topic >", value, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andNiceTopicGreaterThanOrEqualTo(Integer value) {
            addCriterion("nice_topic >=", value, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andNiceTopicLessThan(Integer value) {
            addCriterion("nice_topic <", value, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andNiceTopicLessThanOrEqualTo(Integer value) {
            addCriterion("nice_topic <=", value, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andNiceTopicIn(List<Integer> values) {
            addCriterion("nice_topic in", values, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andNiceTopicNotIn(List<Integer> values) {
            addCriterion("nice_topic not in", values, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andNiceTopicBetween(Integer value1, Integer value2) {
            addCriterion("nice_topic between", value1, value2, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andNiceTopicNotBetween(Integer value1, Integer value2) {
            addCriterion("nice_topic not between", value1, value2, "niceTopic");
            return (Criteria) this;
        }

        public Criteria andBrowseCountIsNull() {
            addCriterion("browse_count is null");
            return (Criteria) this;
        }

        public Criteria andBrowseCountIsNotNull() {
            addCriterion("browse_count is not null");
            return (Criteria) this;
        }

        public Criteria andBrowseCountEqualTo(Integer value) {
            addCriterion("browse_count =", value, "browseCount");
            return (Criteria) this;
        }

        public Criteria andBrowseCountNotEqualTo(Integer value) {
            addCriterion("browse_count <>", value, "browseCount");
            return (Criteria) this;
        }

        public Criteria andBrowseCountGreaterThan(Integer value) {
            addCriterion("browse_count >", value, "browseCount");
            return (Criteria) this;
        }

        public Criteria andBrowseCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("browse_count >=", value, "browseCount");
            return (Criteria) this;
        }

        public Criteria andBrowseCountLessThan(Integer value) {
            addCriterion("browse_count <", value, "browseCount");
            return (Criteria) this;
        }

        public Criteria andBrowseCountLessThanOrEqualTo(Integer value) {
            addCriterion("browse_count <=", value, "browseCount");
            return (Criteria) this;
        }

        public Criteria andBrowseCountIn(List<Integer> values) {
            addCriterion("browse_count in", values, "browseCount");
            return (Criteria) this;
        }

        public Criteria andBrowseCountNotIn(List<Integer> values) {
            addCriterion("browse_count not in", values, "browseCount");
            return (Criteria) this;
        }

        public Criteria andBrowseCountBetween(Integer value1, Integer value2) {
            addCriterion("browse_count between", value1, value2, "browseCount");
            return (Criteria) this;
        }

        public Criteria andBrowseCountNotBetween(Integer value1, Integer value2) {
            addCriterion("browse_count not between", value1, value2, "browseCount");
            return (Criteria) this;
        }

        public Criteria andThumbsUpIsNull() {
            addCriterion("thumbs_up is null");
            return (Criteria) this;
        }

        public Criteria andThumbsUpIsNotNull() {
            addCriterion("thumbs_up is not null");
            return (Criteria) this;
        }

        public Criteria andThumbsUpEqualTo(Integer value) {
            addCriterion("thumbs_up =", value, "thumbsUp");
            return (Criteria) this;
        }

        public Criteria andThumbsUpNotEqualTo(Integer value) {
            addCriterion("thumbs_up <>", value, "thumbsUp");
            return (Criteria) this;
        }

        public Criteria andThumbsUpGreaterThan(Integer value) {
            addCriterion("thumbs_up >", value, "thumbsUp");
            return (Criteria) this;
        }

        public Criteria andThumbsUpGreaterThanOrEqualTo(Integer value) {
            addCriterion("thumbs_up >=", value, "thumbsUp");
            return (Criteria) this;
        }

        public Criteria andThumbsUpLessThan(Integer value) {
            addCriterion("thumbs_up <", value, "thumbsUp");
            return (Criteria) this;
        }

        public Criteria andThumbsUpLessThanOrEqualTo(Integer value) {
            addCriterion("thumbs_up <=", value, "thumbsUp");
            return (Criteria) this;
        }

        public Criteria andThumbsUpIn(List<Integer> values) {
            addCriterion("thumbs_up in", values, "thumbsUp");
            return (Criteria) this;
        }

        public Criteria andThumbsUpNotIn(List<Integer> values) {
            addCriterion("thumbs_up not in", values, "thumbsUp");
            return (Criteria) this;
        }

        public Criteria andThumbsUpBetween(Integer value1, Integer value2) {
            addCriterion("thumbs_up between", value1, value2, "thumbsUp");
            return (Criteria) this;
        }

        public Criteria andThumbsUpNotBetween(Integer value1, Integer value2) {
            addCriterion("thumbs_up not between", value1, value2, "thumbsUp");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}